package com.lihan.services;

import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lihan.common.Result;
import com.lihan.model.bo.UserBo;
import com.lihan.model.dto.LoginByPhoneForm;
import com.lihan.model.dto.MomentFormDTO;
import com.lihan.model.dto.UserLoginForm;
import com.lihan.netty.ChatMsg;
import com.lihan.model.entity.FriendsRequest;
import com.lihan.model.entity.User;
import com.lihan.model.vo.FriendsRequestVo;
import com.lihan.model.vo.MyFriendsVo;

import java.util.List;

/**
 * ClassName: UserServices
 * Package: com.lihan.services
 * Description:
 *
 * @Author 李涵
 * @Create 2025-02-18 13:49
 * @Version 1.0
 */
public interface IUserService extends IService<User> {
    User getUserById(String id);

    //根据用户名查找指定用户对象
    User getUserByUsername(String username);

    //保存
    //User insert(User user);

    //修改用户
    User updateUserInfo(User user);



    //注册用户到数据库
    Result register(User userInfo);

    Result login(UserLoginForm user);

    Result loginByPhone(LoginByPhoneForm form);



    Result updateFaceImage(UserBo userBo);
}
